$(function() {
    if (typeof(Storage) !== "undefined")
    {
        $.post(localStorage.domain_app+"/webservice/getWeddingInfo.php", {
            user_id: localStorage.userID,
            email: localStorage.email
        }, function(res) {
            if(res.error==0){
                $(".text-name-male").html(res.male);
                $(".text-name-female").html(res.female);
                $("#event-des").html("You have a total of "+res.total_event+" event(s)");
                $("#guest-des").html("You have "+res.total_guest+" guest(s)");
                $("#todo-des").html("You have completed "+res.todo+" task(s)");
                $("#budget-des").html("You have $"+res.money+" left to spend");
            }else{
                print_alert(res.msg)
            }
        }, "json");
  
    }
    
    
    if (window.localStorage["token"] == undefined) {
    }
});